#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main2() {
	int n = 7;
	int i = 0;
	int j = 0;
	for (i = 1; i <= n; i++) {
		for (j = 1; j <= n-i; j++) {
			printf(" ");
		}
		for (j = 1; j < 2 * i; j++) {
			printf("*");
		}
		printf("\n");
	}

	for (i = n - 1; i >= 1; i--) {
		for (j = 1; j <= n - i; j++) {
			printf(" ");
		}
		for (j = 1; j <= 2 * i - 1; j++) {
			printf("*");
		}
		printf("\n");
	}
	return 0;
}